﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Windows.Input;

namespace Trackr.GUI.Views
{
	public class DayViewModel : ViewModels.ViewModelBase
	{
		private ObservableCollection<Core.Entities.ITimeItem> _TimeItems;
		private ICommand _SubmitCommand;

		public DayViewModel()
        {
			_TimeItems = new ObservableCollection<Trackr.Core.Entities.ITimeItem>();
			_TimeItems.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(TimeItems_CollectionChanged);            
        }
		void TimeItems_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
			NotifyPropertyChanged("Model.TimeItems");
        }
		public ObservableCollection<Core.Entities.ITimeItem> Model.TimeItems
		{
			get
			{
				return _TimeItems;
			}
			set
			{
				_TimeItems = value;
				NotifyPropertyChanged("Students");
			}
		}
	}
}
